package d0330;

public class TestClass {
    public static void main(String[] args) {
        //1.使用类名.class方式可以获得字节码
        Class clazz1=Account.class;

        //2.使用Class.forName方式获取字节码
        try {
            Class clazz2=Class.forName("d0330.Account");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }

      /*  //3.适用对象获得
        Account account=new Account();
        Class clazz3=new account.getClass();*/
        Account account = new Account ( );
        Class clazz3 = account.getClass ();
    }
}
